import { PlainResponse } from '@/bean/xhr';
import ajax from '.';

class ValidatorService {
  public imgCode() {
    return ajax.get<Promise<PlainResponse<string>>>('/validator/img_code');
  }
}

export const validatorService = new ValidatorService();
